package com.example.seatatwo.controller;

import com.example.seatatwo.service.TwoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TwoController {

    @Autowired
    private TwoService twoService;

    @GetMapping("/hello")
    public Integer hello(){
        twoService.hello();
        return 1;
    }
}
